#include<bits/stdc++.h>
#define endl '\n'
#define debug(x) cerr<<#x<<':'<<x<<endl
#define IOS ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
signed main(){
    // freopen(".in","r",stdin);
    freopen("star.in","w",stdout);
    cout<<"3000 3000"<<endl;
    for(int i=1;i<=3000;i++){
        for(int j=1;j<=3000;j++) cout<<'a';
        cout<<endl;
    }
    return 0;
}